package org.example.dao;

import org.example.model.Order;
import java.util.List;
import org.json.JSONArray;

public interface OrderDAO {
    List<Order> findByUserId(Integer userId);
    Order findByOrderNumber(String orderNumber);
    boolean updateOrderStatus(String orderNumber, String status);
    boolean save(Order order);
    boolean delete(Integer orderId);
    boolean createOrderWithItems(Order order, JSONArray items);
} 